import { http } from "@/utils/http";
// 类型
import type { loginParams } from '@/types/login'

/**
 *根据code获取token
 */
export const login = (data: loginParams) => {
  return http({
    url: "/api/code/login",
    method: "GET",
    data
  });
};
